<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div style="position: relative;z-index: -1"><button id="button">click</button></div>
<div id="test"></div>
<script>
    var test=document.getElementById('test')
    console.log(test)
    for (let i = 0; i < 100; i++) {
        var p=document.createElement('p')
        var newContent = document.createTextNode("Hi there and greetings!");
        p.appendChild(newContent)
        test.appendChild(p)
    }
    var button=document.getElementById('button')
    button.addEventListener('click',()=>{
        console.log('click')
    })
</script>
</body>
</html>
